package com.mbyte.easy.qcbyclass.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.mbyte.easy.qcbyclass.entity.QcbyClass;
import com.mbyte.easy.qcbyclass.mapper.QcbyClassMapper;
import com.mbyte.easy.qcbyclass.service.IQcbyClassService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lp
 * @since 2020-06-16
 */
@Service
public class QcbyClassServiceImpl extends ServiceImpl<QcbyClassMapper, QcbyClass> implements IQcbyClassService {

    //作为公共方法获取有效班级集合（wq,2020.6.16)
    @Override
    public List<QcbyClass> listNormal() {
        return list(new LambdaQueryWrapper<QcbyClass>().eq(QcbyClass::getDeleteStatus,QcbyClass.UNDELETE));
    }
}
